package br.com.serctam.session;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Begin;
import org.jboss.seam.annotations.web.RequestParameter;
import org.jboss.seam.framework.EntityHome;

import br.com.serctam.entity.Concurso;

@Name("concursoHome")
public class ConcursoHome extends EntityHome<Concurso>
{
    @RequestParameter Long concursoId;

    @Override
    public Object getId()
    {
        if (concursoId == null)
        {
            return super.getId();
        }
        else
        {
            return concursoId;
        }
    }

    @Override @Begin(join=true)
    public void create() {
        super.create();
    }

}
